﻿<Window x:Class="AmazonGlacierGUI.UI.Views.JobDetailsView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Job details" Height="300" Width="751.883" WindowStartupLocation="CenterScreen">
    <Grid Margin="5">
        <StackPanel>
            <Grid Visibility="{Binding JobIsDownload,Converter={StaticResource BooleanToVisibilityConverter}}">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100"></ColumnDefinition>
                    <ColumnDefinition Width="20" ></ColumnDefinition>
                    <ColumnDefinition Width="*" ></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock HorizontalAlignment="Left" Text="Job Type"  Grid.Column="0"></TextBlock>
                <TextBlock HorizontalAlignment="Left" Text=":" Grid.Column="1"></TextBlock>
                <TextBlock HorizontalAlignment="Left" Text="Download" Grid.Column="2"></TextBlock>
            </Grid>
            <Grid Margin="0,5,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100"></ColumnDefinition>
                    <ColumnDefinition Width="20" ></ColumnDefinition>
                    <ColumnDefinition Width="*" ></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock HorizontalAlignment="Left" Text="Region"  Grid.Column="0"></TextBlock>
                <TextBlock HorizontalAlignment="Left" Text=":" Grid.Column="1"></TextBlock>
                <TextBlock HorizontalAlignment="Left" Text="{Binding JobVM.Region}"   Grid.Column="2"></TextBlock>
            </Grid>
            <Grid Margin="0,5,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100"></ColumnDefinition>
                    <ColumnDefinition Width="20" ></ColumnDefinition>
                    <ColumnDefinition Width="*" ></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock HorizontalAlignment="Left" Text="Vault"  Grid.Column="0"></TextBlock>
                <TextBlock HorizontalAlignment="Left" Text=":" Grid.Column="1"></TextBlock>
                <TextBlock HorizontalAlignment="Left" Text="{Binding JobVM.VaultName}"   Grid.Column="2"></TextBlock>
            </Grid>
            <Grid Margin="0,5,0,0" Visibility="{Binding JobIsUpload,Converter={StaticResource BooleanToVisibilityConverter}}">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100"></ColumnDefinition>
                    <ColumnDefinition Width="20" ></ColumnDefinition>
                    <ColumnDefinition Width="*" ></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock HorizontalAlignment="Left" Text="Job Type"  Grid.Column="0"></TextBlock>
                <TextBlock HorizontalAlignment="Left" Text=":" Grid.Column="1"></TextBlock>
                <TextBlock HorizontalAlignment="Left" Text="Upload" Grid.Column="2"></TextBlock>
            </Grid>
            <Grid Visibility="{Binding JobIsDownload,Converter={StaticResource BooleanToVisibilityConverter}}" Margin="0,5,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100"></ColumnDefinition>
                    <ColumnDefinition Width="20" ></ColumnDefinition>
                    <ColumnDefinition Width="*" ></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock HorizontalAlignment="Left" Text="File" Width="100" Grid.Column="0"></TextBlock>
                <TextBlock HorizontalAlignment="Left" Text=":"  Grid.Column="1"></TextBlock>
                <TextBlock HorizontalAlignment="Left" Text="{Binding JobVM.DownlodArchiveFileName}"  
                           Grid.Column="2"  TextWrapping="Wrap" 
                          ></TextBlock>
            </Grid>
            <Grid Visibility="{Binding JobIsDownload,Converter={StaticResource BooleanToVisibilityConverter}}" Margin="0,5,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100"></ColumnDefinition>
                    <ColumnDefinition Width="20" ></ColumnDefinition>
                    <ColumnDefinition Width="*" ></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock HorizontalAlignment="Left" Text="Save to" Width="100" Grid.Column="0"></TextBlock>
                <TextBlock HorizontalAlignment="Left" Text=":"  Grid.Column="1"></TextBlock>
                <TextBlock HorizontalAlignment="Left" Text="{Binding JobVM.DownloadArchiveToPath}" TextDecorations="Underline" 
                           Grid.Column="2"  TextWrapping="Wrap" Foreground="Blue" Cursor="Hand"
                           x:Name="tbDownloadArchiveToPath" MouseUp="tbDownloadArchiveToPath_MouseUp"></TextBlock>
            </Grid>
            <Grid Visibility="{Binding JobIsUpload,Converter={StaticResource BooleanToVisibilityConverter}}" Margin="0,5,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100"></ColumnDefinition>
                    <ColumnDefinition Width="20" ></ColumnDefinition>
                    <ColumnDefinition Width="*" ></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock HorizontalAlignment="Left" Text="File" Width="100" Grid.Column="0"></TextBlock>
                <TextBlock HorizontalAlignment="Left" Text=":"  Grid.Column="1"></TextBlock>
                <TextBlock HorizontalAlignment="Left" Text="{Binding JobVM.UploadArchiveFilePath}"  Grid.Column="2"  TextWrapping="Wrap"></TextBlock>
            </Grid>
            <Grid Visibility="{Binding JobIsUpload,Converter={StaticResource BooleanToVisibilityConverter}}" Margin="0,5,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100"></ColumnDefinition>
                    <ColumnDefinition Width="20" ></ColumnDefinition>
                    <ColumnDefinition Width="*" ></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock HorizontalAlignment="Left" Text="Description" Width="100" Grid.Column="0"></TextBlock>
                <TextBlock HorizontalAlignment="Left" Text=":"  Grid.Column="1"></TextBlock>
                <TextBlock HorizontalAlignment="Left" Text="{Binding JobVM.UploadArchiveDescription}"  Grid.Column="2"  TextWrapping="Wrap"></TextBlock>
            </Grid>            
            <Grid Margin="0,5,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100"></ColumnDefinition>
                    <ColumnDefinition Width="20" ></ColumnDefinition>
                    <ColumnDefinition Width="*" ></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock HorizontalAlignment="Left" Text="Status" Width="100" Grid.Column="0"></TextBlock>
                <TextBlock HorizontalAlignment="Left" Text=":"  Grid.Column="1"></TextBlock>
                <TextBlock HorizontalAlignment="Left" Text="{Binding JobVM.StatusMessage}"  Grid.Column="2"  TextWrapping="Wrap"></TextBlock>
            </Grid>

        </StackPanel>
    </Grid>
</Window>
